/**
 * Generali Solutions d'assurances - Tous droits réservés &copy; 2007 - 2010
 */
package fr.generali.accueilclient.client.preferences.builder;

import fr.generali.accueilclient.client.preferences.om.IOMBcPreferences;

/**
 * @author Holmes Kelly
 */
public class OMBcPreferencesDirector {

    /**
     * builder IOMBcPreferencesBuilder
     */
    private IOMBcPreferencesBuilder bcPreferencesBuilder = null;

    /**
     * @param bcPreferencesBuilder builder
     */
    public OMBcPreferencesDirector(IOMBcPreferencesBuilder bcPreferencesBuilder) {
        this.bcPreferencesBuilder = bcPreferencesBuilder;
    }

    /**
     * Appel de tous les build de bcPreferencesBuilder
     */
    public void constructOMBcPreferences() {

        bcPreferencesBuilder.buildIdUtilisateur();
        bcPreferencesBuilder.buildTypeRecherche();
        bcPreferencesBuilder.buildNumColonne();
        bcPreferencesBuilder.buildLibelleCourt();
        bcPreferencesBuilder.buildVisible();
    }

    /**
     * @return IOMBcPreferences bc preferences
     */
    public IOMBcPreferences getOMBcPreferences() {

        return bcPreferencesBuilder.getOMBcPreferences();
    }
}
